package com.gzwanchuang.xhgj.ui.page.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.module.LoadMoreModule;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.gzwanchuang.xhgj.R;
import com.gzwanchuang.xhgj.bridge.data.bean.HeXiaoBean;

import java.util.List;

/**
 * 文件名 : ZhanDanAdapter
 * 创建者 : MangoWang
 * 创建日期 : 2019/12/26 15:44
 * 微信 : MangoWaWang
 * 邮箱 : 763482205@qq.com
 * 描述 : TODO
 */
public class HeXiaoDetailAdapter extends BaseQuickAdapter<HeXiaoBean, BaseViewHolder> implements LoadMoreModule {
    public HeXiaoDetailAdapter(List<HeXiaoBean> data) {
        super(R.layout.item_he_xiao_detail, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HeXiaoBean item) {
        helper.setText(R.id.tv_money,"¥"+ item.getAmount())
                .setText(R.id.tv_pay_type, item.getPay_type_desc())
                .setText(R.id.tv_time, item.getTime())
                .setText(R.id.tv_qian_ming,item.getFlag());
    }


}
